/* *{padding: 0;margin: 0;} */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
dl,
dt,
dd,
form,
fieldset,
legend,
table,
tr,
td,
input {
    padding: 0;
    margin: 0;
}

ol,
ul,
li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    /* IE低版本出现蓝色边框 */
    border: 0;
    /* 解决图片的三像素 bug */
    vertical-align: top;
}

/* 万能清浮动  只能清除浮动元素对父元素造成的影响 */
.clear::after {
    /* 在父元素所有内容的最后放添加伪元素(文本标签) */
    content: ".";
    display: block;
    /* 转化为块级 */
    clear: both;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}


:root {
    --cool: #40C5F1;
    --hot: #f00;
    --grey: #423029;
    --light: #C3D0DF;
}

.carousel {
    /* width: 1226px; */
    /* height: 460px; */
    /* margin: 50px auto; */
    position: relative;
    overflow: hidden;
}

.nav {
    display: flex;
    line-height: 40px;
    text-align: center;
    position: absolute;
    right: 5%;
    bottom: 10%;
    z-index: 99999;
}

.nav li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    flex: 1;
    background-color: var(--light);
    /* border: 1px solid var(--grey); */

}

.nav .active {
    background-color: var(--cool);
    color: #fff;
}

.slide-carousel {
    width: 500%;
    overflow: hidden;
    position: relative;
    left: 0;
}

.slide-carousel .slide-item {
    width: 20%;
    float: left;
}

.slide-carousel .slide-item img {
    width: 100%;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.carousel .prev,
.carousel .next {
    width: 50px;
    height: 50px;
    /* background-color: rgba(0,0,0,0.5); */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: none;
}

.carousel .prev .icon,
.carousel .next .icon {
    width: 100%;
    height: 100%;
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

.one {
    width: 400px;
}

.two {
    width: 400px;
}